﻿using Marbles.CMS.Core;
using System.Text;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;

using Marbles.CMS.ContentTypes;


namespace Marbles.CMS.ContentTypes.Article
{
    public partial class Renderer : PageRendererBase, IPageRenderer
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            
        }

        public override void RenderPageContent(PageDefinition Definition)
        {
            ContentManager cntlr = new ContentManager();
            Dictionary<string, string> content = null;
            HtmlFormatter fmnt = new HtmlFormatter();

            content = cntlr.GetPageContent(Definition.PageName);
            foreach (string s in content.Keys)
            {
                AddContentTemplate(s, CreateContentTemplate(s, content[s]));
            }
        }
    }
}
